package routers

import (
	"gin_project/controllers/admin"

	"github.com/gin-gonic/gin"
)

func AdminRoutersInit(r *gin.Engine) {
	adminRouters := r.Group("/admin")
	{
		adminRouters.GET("", func(c *gin.Context) {
			c.JSON(200, gin.H{
				"msg":      "success",
				"datatype": "后台首页",
			})
		})

		adminRouters.GET("list", func(c *gin.Context) {})

		adminRouters.GET("/user", admin.UserController{}.Index)
	}
}
